package de.kardass.jannobatch.buffered;

import static org.junit.Assert.assertEquals;

import java.util.List;

import de.kardass.jannobatch.BufferedItemWriterAdapter;

public class ABufferedWriter extends BufferedItemWriterAdapter<AnObject> {
	
	private int counter = 0;
	
	public void process(List<AnObject> items) {
	    ++counter;
	    assertEquals("Wrong number of calls", 1, counter);
	    assertEquals("Wrong number of items in list", 3, items.size());
    }
}
